'use strict';

/**
 * 获取主页列表信息
 *
 * 这里的mainCtrl要与定义的路由名字一样
 */
angular.module('app').controller('mainCtrl',['$http','$scope',function ($http,$scope) {
    $http.get('data/positionList.json').success(function (resp) {
        // $scope.abc = 1;

        $scope.list = resp;

    }).error(function (resp) {

    });

    // $scope.list = [{
    //     id:'1001',
    //     name:'销售',
    //     imgSrc:'image/company-3.png',
    //     companyName:'千度',
    //     city:'上海',
    //     industry:'互联网',
    //     time:'2018-06-02 11:05'
    // },{
    //     id:'1002',
    //     name:'web前端',
    //     imgSrc:'image/company-1.png',
    //     companyName:'慕课网',
    //     city:'北京',
    //     industry:'互联网',
    //     time:'2018-06-06 1:05'
    // }]
}]);




